'''1.linxu发行版本：
Fedora Core
RHEL
CentOS
Rocky
Debian
SuSE
ubuntu
Deepin
统信UOS
Manjaro(曼加罗) Linux
Arch
Mint
'''
while True:
    try:
        a = float(input("Please input first num："))
        b = input("Please input need compute(+ - * /)：")
        c = float(input("Please input second num: "))

        if b == "+":
            result = "{} {} {} = {}".format(a, b, c, a + c)
        elif b == "-":
            result = "{} {} {} = {}".format(a, b, c, a - c)
        elif b == "*":
            result = "{} {} {} = {}".format(a, b, c, a * c)
        elif b == "/":
            result = "{} {} {} = {}".format(a, b, c, a / c)
        else:
            continue
    except ZeroDivisionError:
        print("Cannot divide by zero!")
    except Exception as e:
        print("Please input number!(0~9 or float)")
    else:
        print(result)
    finally:
        continue


